package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("dept")
public class Dept {

    @TableId("id")
    private String id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "code")
    private String code;

    @TableField(value = "description")
    private String description;

    @TableField(value = "state")
    private String state;

    @TableField(value = "parentId")
    private String parentId;

    @TableField(exist = false)
    private List<Dept> children;

}
